<template>
<tbody>
<tr >
<td>{{utime}}</td>
<td>{{doctor}}</td>
<td>{{results}}</td>
<td>{{medicine}}</td>
<td @click="allMsg" :data-id="id">详情</td>
</tr>

    <!-- <MyAlert :flag="flag" :utime="obj.utime" :doctor="obj.doctor" :results="obj.results" :medicine="obj.medicine"></MyAlert> -->
</tbody>
</template>

<script>
// import MyAlert from '../components/MyAlert.vue'
export default {
  // components:{MyAlert},
name:'MyRender',
// props:['price','title','desc',]
props:['utime','doctor','results','medicine','id','allMsg','flag'],
data(){
  return{
    // flag:false,
    // obj:''
  }
},
//    methods:{
    
//   allMsg(e){
//     this.flag=!this.flag
//     const num=e.target.dataset.id
//     this.obj={...this.list.find(item=>item.id===+num)}
//   }
// },

}

</script>

<style scoped lang="less">
  .my-table td, .my-table th {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
  }

  .my-table th {
    background-color: #f2f2f2;
  }
</style>
